enum Code {
  SUCCESS = 0,
  ERROR = 1,
}
export default class ResResult {
  static success(data: any, msg: any = '') {
    const code = Code.SUCCESS
    return {
      data,
      msg,
      code,
    }
  }
  static fail(msg: any = '') {
    const code = Code.ERROR
    return {
      msg,
      code,
    }
  }
}
